<div class="modal-header">
  <div class="modal-title">编辑 {{ record.name }} 信息</div>
</div>
@if (!record) {
  <nz-spin class="modal-spin" />
}
@if (record) {
  <sf #sf mode="edit" [schema]="schema" [ui]="ui" [formData]="record" button="none">
    <div class="modal-footer">
      <button nz-button type="button" (click)="close()">关闭</button>
      <button nz-button type="submit" nzType="primary" (click)="save(sf.value)" [disabled]="!sf.valid" [nzLoading]="http.loading"
        >保存</button
      >
    </div>
  </sf>
}
